package com.longshine.arthmetic.ai;

public class Map2D {

	private int points[][];
	public Map2D(int[][] p){
		points = p;
	}
	
	public int getPointData(int x,int y){
		return points[y][x];
	}
	public int getPointData(Point p){
		return points[p.y][p.x];
	}
	public int getXLength(){
		return points[0].length;
	}
	public int getYLength(){
		return points.length;
	}
	public void setPoints(int ps[][]){
		points = ps;
	}
}
